<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%csharp%>
int user_id=DTRequest.GetQueryInt("user_id");
<%/csharp%>
<title>{model.title} - {site.name}</title>
<meta name="keywords" content="{model.seo_keywords}" />
<meta name="description" content="{model.seo_description}" />
<link href="<%templateskin%>/css/common.css" rel="stylesheet" type="text/css" />
<link href="{config.webpath}css/pagination.css" rel="stylesheet" />
<link href="<%templateskin%>/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="{config.webpath}scripts/jquery/jquery-1.11.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="<%templateskin%>/js/common.js"></script>
</head>
<body>
<!--Header-->
<%template src="_header.html"%>
<!--/Header--> 

<!--内页面大标题-->
<div class="nbanner" style="background-color: #9176A8;">
  <div class="bantext" style="background:url(<%templateskin%>/images/site_bantxt.png) no-repeat; width:1220px; height:130px;">
  	 <%csharp%>
      string fore_name="";
      if(user_id>0)
      {
        var foremanModel=get_foreman_model(user_id);
        if(foremanModel!=null && foremanModel.user!=null)
            fore_name=foremanModel.user.nick_name +"工长的";
      }
      <%/csharp%>
      <div class="line30"></div>
    <h3>{fore_name}{model.title}</h3>
    <div class="dqwz"> <span>当前位置：<a href="<%linkurl("index")%>">首页</a> &gt; 工地案例</span><br/>
      <span class="des">{model.content}</span></div>
  </div>
</div>
<!--内页面大标题-->

<div class="section clearfix"> 
  <!--右边-->
  <%template src="_mleft.html"%>
  <!--/右边--> 
  
  <!--左边-->
  <div class="list-auto">
  <%csharp%>
        string where="view_channel_cases.status=0";
        if(user_id>0)
            where+=" and view_channel_cases.user_id="+user_id;
  <%/csharp%>
    <%set DataTable newsList=get_article_list_left_foreman(channel, category_id, pagesize, page, where,"click desc", out totalcount, out pagelist, "msite_list", category_id,user_id, "__id__")%>
    <!--取得一个分页DataTable-->
    <%foreach(DataRow dr in newsList.Rows)%>
    <dl class="ngz-case">
      <dt><a href="<%linkurl("mnews_show",{dr[id]})%>"><img src="{dr[img_url]}" width="220" height="165" alt=""></a></dt>
      <dd> <strong><a href="<%linkurl("mnews_show",{dr[id]})%>">{dr[title]}</a></strong>
        <p>合同价：{dr[area_price]}&nbsp;&nbsp;开工日期：{dr[add_time]}&nbsp;&nbsp;</p>
        <div class="c-jd clear">
          <%cutstring({dr[zhaiyao]},170)%>
        </div>
        <div class="btn-w"> <a target="_blank" href="<%linkurl("mnews_show",{dr[id]})%>" class="btn1">查看工地详情</a> <a href="javascript:alert('敬请期待…');" class="btn2">申请参观工地</a> <span class="btn3">已有<em><script type="text/javascript" src="{config.webpath}tools/submit_ajax.ashx?action=view_article_click&id={dr[id]}"></script></em>人查看</span>
        </div>
        <div class="avatar"><a><img title="{dr[nick_name]}" alt="刘国平" src="{dr[avatar]}"><span>{dr[nick_name]}</span></a> </div>
      </dd>
    </dl>
    <%/foreach%>
    
    <!--页码列表-->
    <div class="page-box">
      <div class="digg">{pagelist}</div>
    </div>
    <!--/页码列表--> 
  </div>
  <!--/左边--> 
  
</div>

<!--Footer-->
<%template src="_footer.html"%>
<!--/Footer-->
</body>
</html>